<?php
/**
 * Description of forgotpass
 * 
 * @author anhdung
 * @since 09-07-2013 - 10:39:15
 */
?>
<div class="row-fluid">
    <div class="login-box">
        <?php if (Yii::app()->user->hasFlash('error')): ?>
            <div class="flash-error">
                <?php echo Yii::app()->user->getFlash('error'); ?>
            </div>
        <?php endif; ?>
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id'                     => 'resetpasswd-form',
            'enableAjaxValidation'   => true,
            'enableClientValidation' => true,
            'htmlOptions'            => array('class' => 'form-horizontal'),
            'focus'                  => array($model, 'new_pass'),
        ));
        ?>
        <h3>Now you can reset your password</h3>
        <?php echo $form->labelEx($model, 'new_pass'); ?>
        <?php
        echo $form->passwordField($model, 'new_pass', array(
//            'placeholder' => $model->getAttributeLabel('new_pass'),
            'class' => 'input-large span12',
        ));
        ?>
        <font color="red"><?php echo $form->error($model, 'new_pass'); ?></font>

        <?php echo $form->labelEx($model, 'repassword'); ?>
        <?php
        echo $form->passwordField($model, 'repassword', array(
//            'placeholder' => $model->getAttributeLabel('repassword'),
            'class' => 'input-large span12',
        ));
        ?>
        <font color="red"><?php echo $form->error($model, 'repassword'); ?></font>

        <div class="clearfix"></div>
        <hr>
        <?php
        echo CHtml::submitButton('Save', array('class' => 'btn btn-info'));
        ?>
        <?php $this->endWidget(); ?>
    </div><!--/row-->
</div><!--/fluid-row-->

